<%page args="p, poptions"/>

<script type="text/javascript">
function procpoll(a, p)	{
	$(".polls").load("/polls/answerpoll", { 'optionid' : a})
}



</script>

% if not p or not poptions:
	No Availible Polls
% else:
<h5>${p.QUESTION}</h5>
<ul>
	
	% for o in poptions:
		<li><a href="javascript:procpoll(${o.OPTIONID}, ${o.POLLID})">${o.ANSWER}</a></li>
	% endfor
</ul>
% endif
